package com.ssk.sh.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssk
 * @since 2025-06-12
 */
@Getter
@Setter
@TableName("_sqlx_migrations")
@Schema(name = "SqlxMigrations", description = "")
public class SqlxMigrations implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("version")
    private Long version;

    @TableField("description")
    private String description;

    @TableField("installed_on")
    private LocalDateTime installedOn;

    @TableField("success")
    private Boolean success;

    @TableField("checksum")
    private byte[] checksum;

    @TableField("execution_time")
    private Long executionTime;

    public static final String VERSION = "version";

    public static final String DESCRIPTION = "description";

    public static final String INSTALLED_ON = "installed_on";

    public static final String SUCCESS = "success";

    public static final String CHECKSUM = "checksum";

    public static final String EXECUTION_TIME = "execution_time";
}
